package model;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 19242
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {

    @JSONField(serialize = false)
    private String id;

    private String name;

    @JSONField(name = "school_name")
    private String schoolName;

    @JSONField(name = "class_name")
    private String className;

    @JSONField(format = "yyyy-MM-dd")
    private Date birthday;

    private String mobile;

    private Integer sex;
}
